package top.igotcha.demo02;

/**
 * @author Gotcha
 * @date 2021/6/9
 * @describe
 */
public class Client {
    public static void main(String[] args) {
        //构建Phone01对象
        Phone01 phone01 = new Phone01("intel", "三星屏幕", "金士顿", "华硕");
        System.out.println(phone01);

        //构建Phone02对象
        Phone02 phone02 = new Phone02.Builder()
                .cpu("intel")
                .mainboard("华硕")
                .memory("金士顿")
                .screen("三星")
                .build();
        System.out.println(phone02);
    }
}
